<template>
  <el-form label-position="top"
           :model="data"
           ref="form"
           style="margin: 10px; width: auto"
  >
    <el-form-item prop="qtType" label="请输入" class="form_item_label">
       <el-input v-model="data.data"></el-input>
    </el-form-item>
    <el-form-item>
      <div class="w_full flex-row-center center-center" style="margin-top: 32px;">
        <el-button type="primary" @click="click_ok">确定</el-button>
      </div>
    </el-form-item>
  </el-form>
</template>


<script setup lang="ts">
import {onMounted, reactive} from "vue";
import {ArrowDown, ArrowUp} from "@element-plus/icons-vue";
import {useRoute} from "vue-router";
import {OfficeInfoVO} from "@/type/vo/OfficeInfoVO";
import {api_getOfficeList} from "@/request/apis/hospitalApi";
import {PublishExamInfo} from "@/type/dto/PublicNaireDto";
import {api_publicExam} from "@/request/apis/examApi";
import msg from "@/components/msg";

const route = useRoute();
console.log(route);


const props = defineProps({
  data: {
    type: String,
    default: '',
  },
});

const emit = defineEmits(["close"])

const examId = props.data as string;

const data = reactive({
      data: ''
    }
);

const click_ok = async () => {
  if (data.data.length==0) {
    await msg.info('请输入', '提示', {
      confirmButtonText: '确定'
    });
    return;
  }
  emit("close", true,data.data);
}

const click_cancel = () => {
  emit("close", false);
}


</script>

<style scoped>
.item .el-form-item__label {
  font-size: 14px;
  font-weight: 400;
  color: #7D8592;
  line-height: 24px;
}

</style>